package com.example.systems.controller;

import com.example.systems.entity.FileInfo;
import com.example.systems.service.FileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 文件信息表 前端控制器
 * </p>
 *
 * @author honglujun
 * @since 2025-07-22 09:24:16
 */
@RestController
@RequestMapping("/systems/fileInfo")
public class FileInfoController {


    @Autowired
    private FileInfoService fileInfoService;


    @PostMapping("/insertForeach")
    @ResponseBody
    public List<Long> insertForeach(@RequestBody List<FileInfo> fileInfos) {
        return fileInfoService.insertBatch(fileInfos);
    }

}
